class Brand < ActiveRecord::Base
	has_many :products
	has_many :designs
	has_and_belongs_to_many :elements
	has_and_belongs_to_many :colors
	has_and_belongs_to_many :monogram_families
	
	def upload_1=(binary_data)
		unless binary_data.blank?
			self.on_logo = binary_data.read
		end
	end
		def upload_2=(binary_data)
			unless binary_data.blank?
		self.off_logo = binary_data.read
	end
	end
end
